package cloud.seri.iot.manager.web.rest


import cloud.seri.iot.common.model.QueryDeviceDTO
import cloud.seri.iot.manager.SeriIotManagerApp
import cloud.seri.iot.manager.client.DeviceManagerClient
import cloud.seri.iot.manager.config.SecurityBeanOverrideConfiguration
import cloud.seri.iot.manager.domain.Device
import cloud.seri.iot.manager.repository.DeviceRepository
import cloud.seri.iot.manager.repository.ProductRepository
import cloud.seri.iot.manager.service.DeviceService
import cloud.seri.iot.manager.service.mapper.DeviceMapper
import cloud.seri.iot.manager.web.rest.TestUtil.createFormattingConversionService
import cloud.seri.iot.manager.web.rest.errors.ExceptionTranslator
import org.junit.Before
import org.junit.Test
import org.junit.runner.RunWith
import org.mockito.MockitoAnnotations
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.boot.test.context.SpringBootTest
import org.springframework.data.web.PageableHandlerMethodArgumentResolver
import org.springframework.http.converter.json.MappingJackson2HttpMessageConverter
import org.springframework.test.context.junit4.SpringRunner
import org.springframework.test.web.servlet.MockMvc
import org.springframework.test.web.servlet.setup.MockMvcBuilders
import org.springframework.validation.Validator

/**
 * Test class for the DeviceResource REST controller.
 *
 * @see DeviceResource
 */
@RunWith(SpringRunner::class)
@SpringBootTest(classes = [SecurityBeanOverrideConfiguration::class, SeriIotManagerApp::class])
class DeviceResourceIT
{

    @Autowired
    private lateinit var deviceRepository: DeviceRepository

    @Autowired
    private lateinit var deviceMapper: DeviceMapper

    @Autowired
    private lateinit var deviceService: DeviceService

    @Autowired
    private lateinit var jacksonMessageConverter: MappingJackson2HttpMessageConverter

    @Autowired
    private lateinit var pageableArgumentResolver: PageableHandlerMethodArgumentResolver

    @Autowired
    private lateinit var exceptionTranslator: ExceptionTranslator

    @Autowired
    private lateinit var validator: Validator

    @Autowired
    private lateinit var client: DeviceManagerClient

    @Autowired
    private lateinit var productRepository: ProductRepository

    private lateinit var restDeviceMockMvc: MockMvc

    private lateinit var device: Device

    @Test
    fun getDevicesByAliyun()
    {

    }

}
